/
/ $Header: README.txt 25-jun-2007.15:53:00 rkothuri Exp $
/
/ README.txt
/
/ Copyright (c) 2007, Oracle. All Rights Reserved.
/
/   NAME
/     README.txt - README for CityGMLToSDO Examples 
/
/   DESCRIPTION
/     This README describes the Java examples for converting from CityGML.
/
/   NOTES
/     <other useful comments, qualifications, etc.>
/
/   MODIFIED   (MM/DD/YY)
/   rkothuri    01/30/07 - Creation
/


CGMLToSDO.java:  This java code demonstrates how to convert CityGML 
    documents into an SDO_GEOMETRY. Specify the "-h" to get a help on
    command-line parameters. If no command line argument is specified, 
    the input is read from CityGMLToSDO.gml file and each cityobject member 
    in the file is written to the cityobjectmembers table. Each top-level 
    "MultiSurface or Polygon" geometry for the cityObjectMember is written 
    as a component SDO_GEOMETRY of the current cityObjectMember in 
    the geometries table. For changing the names of these tables use 
    the -h option for the usage options. These tables are created as follows 
    prior to running CGMLToSDO. 

Instructions: 
1.  Connect to a database schema (say scott/tiger), run the following script:
 

How to setup and run these sample Java programs:
------------------------------------------------

This procedure assumes that
    1. You have Oracle Spatial Option installed on your database.
    2. You have all the necessary Java libraries
       in your classpath:
            sdoapi.jar      - Oracle JGeometry
            sdoutl.jar      - Oracle Spatial Utility Package
            sdotype.jar     - Oracle Spatial Type Package
            sdotopo.jar     - Oracle Spatial Topology Package
            xmlparserv2.jar - Oracle XDK v2
            ojdbc5.jar      - Oracle JDBC
    3. The default connection parameters scott/tiger. 
    4. The default input CityGML file is CityGMLToSDO.gml
    5. You have already created two tables in the database to
       store the CityGML file as is, and the geometry components in 
       the CityGML file.  The SQL for creation of these tables is as follows.
     create table cityobjectmembers(id number, feature xmltype);
     create table geometries (feature_id number, comp_id number, 
	                      geom sdo_geometry);

    6. Download a sample CityGML file from http://www.citygml.org
       and store it in CityGMLToSDO.gml.


1. Compile the java program.

     javac -cp $CLASSPATH CGMLToSDO.java

2. Run the CGMLToSDO java program as: 

     java -cp $CLASSPATH CGMLToSDO -host <hostname> -port <p> -sid <sdo> -file
CityGMLToSDO.gml

3. To get the different options for changing the default parameters,
   you can run  the program as:
   
     java -cp $CLASSPATH CGMLToSDO -h
 

     
     


    
